package demo.common.exception;

/**
 * 业务系统信息
 */
public class ServiceException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    private int statusCode;

    public int getStatusCode() {
        return statusCode;
    }

    public ServiceException(String message) {
        super(message);
    }

    public ServiceException(int statusCode, String message) {
        super(message);
        this.statusCode = statusCode;
   }

    public ServiceException(int code, String message, Throwable cause) {
        super(message, cause);
        this.statusCode = code;
    }

}
